package com.forezp.configclient.springboot2Rabbit;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @version V1.0  </br>
 * @ClassName HelloReceiver1 </br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 11/26/2018 10:27 AM</br>
 */
@Component
public class HelloReceiver {
    @RabbitListener(queues = "hello")
    public void process1(String hello) {
        System.out.println("Receiver1  : " + hello);
    }
    @RabbitListener(queues = "hello")
    public void process2(String hello) {
        System.out.println("Receiver2  : " + hello);
    }
}
